/******
    Set up standard Plone popups
    
    Provides globals: common_content_filter
    
    Extends jQuery.tools.overlay.conf to set up common Plone effects and
    visuals.
******/


var common_content_filter = '#content>*:not(div.configlet),dl.portalMessage.error,dl.portalMessage.info';

jQuery.extend(jQuery.tools.overlay.conf, 
    {
        fixed : false,
        speed : 'fast',
        mask  : {
	        color:'rgba(50,50,50, 0.75)',
	        opacity: 0.4,
            loadSpeed:0,
		    closeSpeed:0
		}
    }
);


jQuery(function($){

    if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 7) {
        // it's not realistic to think we can deal with all the bugs
        // of IE 6 and lower. Fortunately, all this is just progressive
        // enhancement.
        return;
    }
    
    $('#movies li a').prepOverlay(
        {
            subtype: 'ajax',
            filter: 'article#content',
        }
    );

});

